<?php

namespace app\admin\model\sales\facilities;

use think\Model;

/**
 * Leases
 */
class Leases extends Model
{
    // 表主键
    protected $pk = 'leaseid';
    
    // 表名
    protected $name = 'sales_facilities_leases';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;


    public function leasecatidTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\sales\facilities\Leasecat::class, 'leasecatid', 'leasecatid');
    }
}